<?php
//src/Asiah/SiklusBundle/Form/Type/BookmarkType.php

namespace Asiah\SiklusBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class BookmarkType extends AbstractType {

	public function buildForm(FormBuilder $builder, array $options) {
		$builder -> add('title', 'text');
		$builder -> add('custom_url', 'text',array('required'=>false));
		$builder -> add('description', 'textarea');
	}

	public function getName() {
		return "bookmark";
	}

	public function getDefaultOptions(array $options) {
		return array('data_class' => 'Asiah\SiklusBundle\Entity\Bookmark', 
		);
	}
        
}
